<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp" %>
<html>
    <head>
        <title>用户对局信息</title>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8">
        <meta name="decorator" content="ani"/>
        <%@ include file="/webpage/include/bootstraptable.jsp" %>
        <%@include file="/webpage/include/treeview.jsp" %>
        <script  type="text/javascript">
            $(document).ready(function () {
                $('#yjScoreRecordTable').bootstrapTable({
                    data: ${list},
                    //类型json
                    dataType: "json",
                    //显示刷新按钮
                    showRefresh: true,
                    //显示切换手机试图按钮
                    showToggle: true,
                    //显示 内容列下拉框
                    showColumns: true,
                    //显示到处按钮
                    showExport: true,
                    //显示切换分页按钮
                    showPaginationSwitch: true,
                    //最低显示2行
                    minimumCountColumns: 2,
                    //是否显示行间隔色
                    striped: true,
                    //是否使用缓存，默认为true，所以一般情况下需要设置一下这个属性（*）
                    cache: false,
                    //排序方式
                    sortOrder: "asc",
                    contextMenuTrigger: "right",//pc端 按右键弹出菜单
                    contextMenuTriggerMobile: "press",//手机端 弹出菜单，click：单击， press：长按。
                    contextMenu: '#context-menu',
                    columns: [{
                        field: 'roomNum',
                        title: '房间号'
                    }, {
                        field: 'roomFlag',
                        title: '房间标识'
                    }, {
                        field: 'gamesCount',
                        title: '牌局数'
                    }, {
                        field: 'score',
                        title: '积分数'
                    }, {
                        field: 'isHelpRecord',
                        title: '是否他人帮记',
                        formatter: function (value, row, index) {
                            return value == 0 ? "否" : "是";
                        }
                    }, {
                        field: 'createDate',
                        title: '创建时间'
                    }]
                });
            });
        </script>
    </head>
    <body>
        <div class="wrapper wrapper-content">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">用户对局信息</h3>
                </div>
                <div class="panel-body">
                    <sys:message content="${message}"/>
                    <table id="yjScoreRecordTable"></table>
                </div>
            </div>
        </div>
    </body>
</html>